package com.qf.lanzhou.shop.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * @Author jian  反馈表实体类
 * @Date 2021/1/9 17:06
 * @JDK 1.8
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

public class Feedback {

    private Long id;
    private String userName;
    //反馈的信息
    private String message;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Timestamp createTime;

    private Long sellerId;
    //卖家店铺名
    private String shopName;




   /* private String notificationTimeStr;
    private static SimpleDateFormat sdf;

    public void setNotificationTimeStr(Timestamp createTime) {
        sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String notificationTimeStr = sdf.format(createTime);
        this.notificationTimeStr = notificationTimeStr;
    }*/

}
